﻿using COSXML.Log;
using LimaLims.Application.Service.Base.Dto;
using LimaLims.Application.Service.Equipment.Dto;
using LimaLims.Core;
using LimaLims.Core.Enum;
using LimaLims.Core.Util;

namespace LimaLims.Application.Service.Basic.Dto
{
    public class AddSupplierInput : BaseDto
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 供应商等级
        /// </summary>
        public SupplierLevel Level { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string ContactName { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 联系地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }

    public class EditSupplierInput : AddSupplierInput
    {

    }

    public class SupplierOutput : BaseDto
    {
        /// <summary>
        /// 厂家名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string ContactName { get; set; }

        /// <summary>
        /// 供应商等级
        /// </summary>
        public SupplierLevel Level { get; set; }

        /// <summary>
        /// 供应商等级文本
        /// </summary>
        public string LevelText => Level.GetDescription();
      
        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 联系地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }

    /// <summary>
    /// 供应商分页
    /// </summary>
    public class SupplierPageInput : PageInputBase
    {
        /// <summary>
        /// 联系电话
        /// </summary>
        public string Phone { get; set; }
    }
}
